package com.suneast.suneaststore.modules.personal.order.event;

import com.suneast.suneaststore.modules.common.Flag;

public class DeleteResult {
    private @Flag.Result
    final int value;
    private final String msg;

    private final int pos;


    public DeleteResult(@Flag.Result int value, int pos) {
        this.value = value;
        this.msg = null;
        this.pos = pos;
    }

    public DeleteResult(@Flag.Result int value, String msg) {
        this.value = value;
        this.msg = msg;
        pos = -1;
    }

    public int getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }

    public int getPos() {
        return pos;
    }
}
